package com.controller;

import com.service.C_userService;
import com.util.C_register;
import com.util.C_user;

import com.util.P_user;
import com.util.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class C_userController {
    @Resource
    C_userService c_userService;
    @RequestMapping("/c_login")
    public Result<?> Login(@RequestBody C_user c_user){
        return c_userService.login(c_user);
    }
    @RequestMapping("/c_register")
    public Result<?> Register(@RequestBody C_register c_register){
        return c_userService.register(c_register);
    }
    @RequestMapping("/c_repassword")
    public Result<?> UpdatePassword(@RequestBody C_user c_user){
        return c_userService.updatePassword(c_user);
    }
}
